# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=libmaa
pkgver=1.4.7
pkgrel=2
pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
url="https://sourceforge.net/projects/dict/"
license=('GPL')
arch=('loong64' 'x86_64')
depends=()
makedepends=('flex' 'mk-configure' 'bmake')
source=("https://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz")
sha256sums=('4e01a9ebc5d96bc9284b6706aa82bddc2a11047fa9bd02e94cf8753ec7dcb98e')

build() {
  cd "${srcdir}/$pkgname-$pkgver"
  mkcmake PREFIX=/usr
}

package() {
  cd "${srcdir}/$pkgname-$pkgver"
  mkcmake PREFIX=/usr DESTDIR="${pkgdir}" install
}
